﻿using dreamwork.pay.api.Model.Data;
using Dreamwork.Core.Infrastructure.RDSDb;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using System;

namespace dreamwork.pay.api.Infrastructure.EFSqlServer
{
	public class PayUserRepository : RDSRepository<PayUser, Guid>
	{
		private readonly PayDbContext _dbContext;
		public PayUserRepository(PayDbContext dbContext, ILogger<PayUserRepository> logger) : base(dbContext, logger)
		{
			_dbContext = dbContext;
		}

		protected override DbSet<PayUser> Entities { get => _dbContext.PayUsers; set => _dbContext.PayUsers = value; }
	}
}
